from tool_maths import *

v1 = [0.,1.,1.,1.,1.,1.,0.]
v2 = [0.,1.,2.,1.,0.,0.,0.]

v1 = [0 for _ in xrange(256)]
v2 = [0 for _ in xrange(256)]
v1[0] = 1


v2[0] = 1

res = get_im(v1,v2)
print "%f"%(res)

t = get_table_contingence(v1,v2)

#t = [110,2442,111,29114]
rv = get_rv(t)
print "%f"%(rv)

angle = get_angle(v1,v2)
print "%f"%(angle)
